import Vue from 'vue'
import App from './App.vue'

//导入router
import router from './router/index.js'

import store from './store/index.js'

//导入toast
import toast from 'components/common/toast/index.js'

//导入fastclick
import FastClick from 'fastclick'

//导入vue-lazyload
import VueLazyLoad from 'vue-lazyload'

//安装toast插件
Vue.use(toast)

//使用图片懒加载插件
Vue.use(VueLazyLoad, {
	loading: require('assets/img/common/placeholder.png')
})

//解决移动端300ms延迟
FastClick.attach(document.body)

Vue.config.productionTip = false

Vue.prototype.$bus = new Vue()

new Vue({
  render: h => h(App),
  router,
  store
}).$mount('#app')
